//分类相关数据ts类型
export interface ResponseData{
    code:number,
    message:string,
    ok:boolean
}

//分类ts类型
export interface CategoryObj{
    id:number|string,
    name:string,
    category1Id?:number,
    category2Id?:number,
}

//响应分类接口返回数据类型
export interface CategoryResponseData extends ResponseData{
    data:CategoryObj[]
}
//属性值对象的类型
export interface AttrValue{
   id?:number,
   valueName:string,
   attrId?:number,
   flag?:boolean
}
//存储每一个属性值的数组类型
export type AttrValueList = AttrValue[]

//属性对象
export interface Attr{
    attrName: string,
    attrValueList:AttrValueList
    categoryId: number|string,
    categoryLevel: number,
    id?: number
}
//存储每一个属性对象的数组ts类型
export type AttrList = Attr[];

//属性接口返回的数据ts类型
export interface AttrResponseDate extends ResponseData{
    data:Attr[]
}